package com.itheima.pinda.entity.truck;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.itheima.pinda.entity.base.Entity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
    * 车辆信息表
    */
@Data
@EqualsAndHashCode(callSuper=true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "pd_truck")
public class PdTruck extends Entity implements Serializable {
    /**
     * 车辆类型id
     */
    @TableField(value = "truck_type_id")
    private String truckTypeId;

    /**
     * 所属车队id
     */
    @TableField(value = "fleet_id")
    private String fleetId;

    /**
     * 品牌
     */
    @TableField(value = "brand")
    private String brand;

    /**
     * 车牌号码
     */
    @TableField(value = "license_plate")
    private String licensePlate;

    /**
     * GPS设备id
     */
    @TableField(value = "device_gps_id")
    private String deviceGpsId;

    /**
     * 准载重量
     */
    @TableField(value = "allowable_load")
    private BigDecimal allowableLoad;

    /**
     * 准载体积
     */
    @TableField(value = "allowable_volume")
    private BigDecimal allowableVolume;

    /**
     * 车辆行驶证信息id
     */
    @TableField(value = "truck_license_id")
    private String truckLicenseId;

    /**
     * 状态 0：禁用 1：正常
     */
    @TableField(value = "`status`")
    private Byte status;
}